|
![](/i/fill.gif) |
Even when compiling to some form of bytecode the second version would still
be faster, as calling a function is fairly slow relative to just calling and
increment a value. (Based upon my experience with Java bytecode).
"Christopher James Huff" <cja### [at] earthlink net> wrote in message
news:cja### [at] netplex aussie org...
> In article <3e5136ff@news.povray.org>, "Shay" <sah### [at] simcoparts com>
> wrote:
>
> > The following piece of code has two sections. The first section parses
> > in 18 seconds on this computer (p3 650m). The second section parses in
> > only 9 seconds!!
>
> Yeah, the scene description language is slow. For comparison, CSDL
> managed about 250000 simple loops per second on my 350MHz G3 (if I
> remember right...). I haven't tested Sapphire, but it should be even
> faster.
>
> The difference is that the main POV script isn't compiled to bytecodes,
> it is parsed directly, which means a lot of string operations and
> jumping around the source files.
>
> --
> Christopher James Huff <cja### [at] earthlink net>
> http://home.earthlink.net/~cjameshuff/
> POV-Ray TAG: chr### [at] tag povray org
> http://tag.povray.org/
Post a reply to this message
|
![](/i/fill.gif) |